package com.iter.devbox.pattern;

/**
 * 装饰角色
 * 
 * @author hnylj
 */
public class Decorator implements Ijuice {
	
	/**持有抽象构建的引用*/
	protected Ijuice juice;
	
	/**构造具体构建*/
	public Decorator (Ijuice juice) {
		super();
		this.juice = juice;
	}
	
	/**实现抽象构建的方法*/
	@Override
	public double cost() {
		return juice.cost();
	}
}
